const vm = new Vue({
    el: '#main',
    data: {
        smile: true,
        info: {
            deposit_status: {},
            lease_type: {},
            status: {},
        },
        showGuysDetail: false,
    },
    methods: {
        delete_order() {
            ajax({
                url: 'home/order/delete',
                data: {orderId: id},
            }).then(
                res => {
                    console.log(res);
                },
            );
        },
    },
});

function apiready() {
    fxj.fixLayout();
    reqIndentDetail();

}

function reqIndentDetail() {
    ajax({
        url: 'home/order/getLandlordOrderDetail',
        data: {
            orderId: 24860009176,
        },
    }).then(
        res => {
            console.log(res);
            vm.info = res.data;
        },
    );
}

function goHouseResDetail(id) {
    goPage('house_res_detail.html', {
        data: {
            id,
        },
    });
}

function chatting(id) {
    goPage('chat.html', {
        data: {
            landlordId: id,
        },
    });
}

function call(tel) {
    const a = document.createElement('a');
    a.href = `tel:${tel}`;
    a.click();
    call = function () {
        a.click();
    };
}

function toggleGuysShow() {
    vm.showGuysDetail = !vm.showGuysDetail;
}